const OperatorCode = {
    // ble op code
    OPEN_BLUETOOTH_ADAPTER: 1001,
    CLOSE_BLUETOOTH_ADAPTER: 1002,
    GET_BLUETOOTH_ADAPTER_STATE: 1003,
    ON_BLUETOOTH_ADAPTER_STATE_CHANGE: 1004,
    START_BLUETOOTH_DEVICES_DISCOVERY: 1005,
    STOP_BLUETOOTH_DEVICES_DISCOVERY: 1006,
    ON_BLUETOOTH_DEVICE_FOUND: 1007,
    CREATE_BLE_CONNECTION: 1008,
    CLOSE_BLE_CONNECTION: 1009,
    ON_BLE_CONNECTION_STATE_CHANGE: 1010,
    GET_DEVICE_ID: 1011,
    ON_BLE_SERVICES_DISCOVERED: 1012,
    READ_BLE_CHARACTERISTIC_VALUE: 1013,
    WRITE_BLE_CHARACTERISTIC_VALUE: 1014,
    ON_BLE_CHARACTERISTIC_VALUE_CHANGE: 1015,
    NOTIFY_BLE_CHARACTERISTIC_VALUE_CHANGE: 1016,
    SET_ENABLE_INDICATION: 1017,
    ON_ENABLE_NOTIFY_INDICATE: 1020,
    READ_BLE_DESCRIPTOR_VALUE: 1023,
    WRITE_BLE_DESCRIPTOR_VALUE: 1024,
    GET_BLE_CONNECTION_STATE: 1025,
    // common op code
    CHECK_PERMISSION: 2000,
    REQUEST_PERMISSION: 2010,
    START_ABILITY: 2020,
    CHECK_PACKAGE_INSTALLATION: 2030,
    OPEN_URL: 2040,
    GET_UNIQUE_ID: 2050,
    START_SYSTEM_ABILITY: 2060,

    GET_OTA_VERSION: 3000,
    GET_OTA_FILE: 3010,
    DOWNLOAD_OTA_FILE: 3020,
    // abilityType: 0-Ability; 1-Internal Ability
    ABILITY_TYPE_EXTERNAL: 0,
    ABILITY_TYPE_INTERNAL: 1,
    // syncOption: 0-Sync; 1-Async
    ACTION_SYNC: 0,
    ACTION_ASYNC: 1,
}

export default OperatorCode

